if(NOT KMPKG_TARGET_IS_WINDOWS)
    kmpkg_check_linkage(ONLY_STATIC_LIBRARY)
endif()

kmpkg_from_gitee(
        OUT_SOURCE_PATH SOURCE_PATH
        REPO kumo-pub/kfor
        REF v${VERSION}
        SHA512 bf3b133b7bded5b99d27cae4335da23e38429b9309796746d9ffd53c32eb5101806c59f4f661198585458e8826256c85ae7ab3530e7877742cf8fb8105b7a08e
        HEAD_REF master
)

kmpkg_cmake_configure(
    SOURCE_PATH "${SOURCE_PATH}"
    DISABLE_PARALLEL_CONFIGURE
    OPTIONS
        -DKMCMAKE_BUILD_TEST=OFF
)



kmpkg_cmake_install()
kmpkg_cmake_config_fixup(PACKAGE_NAME kfor CONFIG_PATH lib/cmake/kfor)
kmpkg_fixup_pkgconfig()

kmpkg_copy_pdbs()

kmpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
